package com.tsy.graduate.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;


@Data
//数据表相关
@TableName("course")
//使用chain属性，setter方法返回当前对象
@Accessors(chain = true)
public class Course {


    @TableId(type = IdType.AUTO)
    Long id;

    Long teacherId;

    String title;

    String textContent;

    String imgUrl;

    private Integer created;

    private Integer updated;

    //逻辑删除
    @TableLogic
    private Boolean isDeleted;



}
